package com.pucong.gitee.database.backup.common.entity;


import com.pucong.gitee.database.backup.common.selfenum.CommonBoolenEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("数据库表字段")
public class DatabaseTableFiled implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("字段名称")
    private String filedName;

    @ApiModelProperty("字段类型")
    private String filedType;

    @ApiModelProperty("是否是主键")
    private CommonBoolenEnum primaryKey;

    @ApiModelProperty("是否必填")
    private CommonBoolenEnum notNull;

    @ApiModelProperty("字段大小")
    private String filedSize;

    @ApiModelProperty("字段小数点")
    private String filedSizeRadix;

    @ApiModelProperty("字段描述")
    private String filedComment;

    @ApiModelProperty("默认值")
    private String defaultValue;
}
